<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader Host: DataSource.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader Host
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Host Tools for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('src_2blfwk_2_data_source_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">src/blfwk/DataSource.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2013-14, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without modification,</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * are permitted provided that the following conditions are met:</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * o Redistributions of source code must retain the above copyright notice, this list</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *   of conditions and the following disclaimer.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * o Redistributions in binary form must reproduce the above copyright notice, this</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *   list of conditions and the following disclaimer in the documentation and/or</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *   other materials provided with the distribution.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * o Neither the name of Freescale Semiconductor, Inc. nor the names of its</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *   contributors may be used to endorse or promote products derived from this</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *   software without specific prior written permission.</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#if !defined(_DataSource_h_)</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#define _DataSource_h_</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;Value.h&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;smart_ptr.h&quot;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &quot;StExecutableImage.h&quot;</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceblfwk.html">blfwk</a></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;{</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">// Forward declaration</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="keyword">class </span>DataTarget;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classblfwk_1_1_data_source.html">   56</a></span>&#160;<span class="keyword">class </span><a class="code" href="classblfwk_1_1_data_source.html">DataSource</a></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;{</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classblfwk_1_1_data_source_1_1_segment.html">   65</a></span>&#160;    <span class="keyword">class </span><a class="code" href="classblfwk_1_1_data_source_1_1_segment.html">Segment</a></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    {</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classblfwk_1_1_data_source_1_1_segment.html#a0afe9c18e41b3529af0fe2d868d2b8f6">   69</a></span>&#160;        <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#a0afe9c18e41b3529af0fe2d868d2b8f6">Segment</a>(<a class="code" href="classblfwk_1_1_data_source.html">DataSource</a> &amp;source)</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;            : <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#ace39325ad306a493951b2da7064a40e7">m_source</a>(source)</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        {</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        }</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classblfwk_1_1_data_source_1_1_segment.html#a0796a4bf08ad30c2fb61847dc2a3e90f">   75</a></span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#a0796a4bf08ad30c2fb61847dc2a3e90f">~Segment</a>() {}</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#a518cfc843856682a550302f58f4b252c">getData</a>(<span class="keywordtype">unsigned</span> offset, <span class="keywordtype">unsigned</span> maxBytes, uint8_t *buffer) = 0;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#aa974f251e332134e73f2924560cfd5c4">getLength</a>() = 0;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#a72b9a2d2824ddc9288c8f5982874fb1a">hasNaturalLocation</a>() = 0;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classblfwk_1_1_data_source_1_1_segment.html#a426897327bc9930ac7291cf7ef80be0e">   95</a></span>&#160;        <span class="keyword">virtual</span> uint32_t <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#a426897327bc9930ac7291cf7ef80be0e">getBaseAddress</a>() { <span class="keywordflow">return</span> 0; }</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classblfwk_1_1_data_source_1_1_segment.html#ace39325ad306a493951b2da7064a40e7">   97</a></span>&#160;        <a class="code" href="classblfwk_1_1_data_source.html">DataSource</a> &amp;<a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#ace39325ad306a493951b2da7064a40e7">m_source</a>; </div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    };</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classblfwk_1_1_data_source_1_1_pattern_segment.html">  110</a></span>&#160;    <span class="keyword">class </span><a class="code" href="classblfwk_1_1_data_source_1_1_pattern_segment.html">PatternSegment</a> : <span class="keyword">public</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html">Segment</a></div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    {</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        <a class="code" href="classblfwk_1_1_data_source_1_1_pattern_segment.html">PatternSegment</a>(<a class="code" href="classblfwk_1_1_data_source.html">DataSource</a> &amp;source);</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <a class="code" href="classblfwk_1_1_data_source_1_1_pattern_segment.html">PatternSegment</a>(<a class="code" href="classblfwk_1_1_data_source.html">DataSource</a> &amp;source, <span class="keyword">const</span> <a class="code" href="classblfwk_1_1_sized_integer_value.html">SizedIntegerValue</a> &amp;pattern);</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        <a class="code" href="classblfwk_1_1_data_source_1_1_pattern_segment.html">PatternSegment</a>(<a class="code" href="classblfwk_1_1_data_source.html">DataSource</a> &amp;source, uint8_t pattern);</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <a class="code" href="classblfwk_1_1_data_source_1_1_pattern_segment.html">PatternSegment</a>(<a class="code" href="classblfwk_1_1_data_source.html">DataSource</a> &amp;source, uint16_t pattern);</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        <a class="code" href="classblfwk_1_1_data_source_1_1_pattern_segment.html">PatternSegment</a>(<a class="code" href="classblfwk_1_1_data_source.html">DataSource</a> &amp;source, uint32_t pattern);</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#a72b9a2d2824ddc9288c8f5982874fb1a">hasNaturalLocation</a>() { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#a518cfc843856682a550302f58f4b252c">getData</a>(<span class="keywordtype">unsigned</span> offset, <span class="keywordtype">unsigned</span> maxBytes, uint8_t *buffer);</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#aa974f251e332134e73f2924560cfd5c4">getLength</a>();</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> setPattern(<span class="keyword">const</span> <a class="code" href="classblfwk_1_1_sized_integer_value.html">SizedIntegerValue</a> &amp;newPattern) { m_pattern = newPattern; }</div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="classblfwk_1_1_data_source_1_1_pattern_segment.html#ac6ea1f87579015f4a8087d5cb5556f8d">  144</a></span>&#160;        <span class="keyword">inline</span> <a class="code" href="classblfwk_1_1_sized_integer_value.html">SizedIntegerValue</a> &amp;<a class="code" href="classblfwk_1_1_data_source_1_1_pattern_segment.html#ac6ea1f87579015f4a8087d5cb5556f8d">getPattern</a>() { <span class="keywordflow">return</span> m_pattern; }</div><div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="classblfwk_1_1_data_source_1_1_pattern_segment.html#aefe925dc1e9ec3aaef58f4162cb1a82a">  146</a></span>&#160;        <a class="code" href="classblfwk_1_1_data_source_1_1_pattern_segment.html">PatternSegment</a> &amp;<a class="code" href="classblfwk_1_1_data_source_1_1_pattern_segment.html#aefe925dc1e9ec3aaef58f4162cb1a82a">operator=</a>(<span class="keyword">const</span> <a class="code" href="classblfwk_1_1_sized_integer_value.html">SizedIntegerValue</a> &amp;value)</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        {</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;            m_pattern = value;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;            <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        }</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="classblfwk_1_1_data_source_1_1_pattern_segment.html#a34dcdffc029ba8600657bc978b804827">  154</a></span>&#160;        <a class="code" href="classblfwk_1_1_sized_integer_value.html">SizedIntegerValue</a> <a class="code" href="classblfwk_1_1_data_source_1_1_pattern_segment.html#a34dcdffc029ba8600657bc978b804827">m_pattern</a>; </div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    };</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="classblfwk_1_1_data_source.html#abbf11da8bfe579daeb6a036855828343">  159</a></span>&#160;    <a class="code" href="classblfwk_1_1_data_source.html#abbf11da8bfe579daeb6a036855828343">DataSource</a>()</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;        : <a class="code" href="classblfwk_1_1_data_source.html#a3cdb5a580a82196100105f66237986b3">m_target</a>(0)</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    {</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    }</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classblfwk_1_1_data_source.html#a15d6cb8713f5f068e59cb19adf6bc4f0">  165</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_source.html#a15d6cb8713f5f068e59cb19adf6bc4f0">~DataSource</a>() {}</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classblfwk_1_1_data_source.html#ac9bb497fc9cf99267585d9fac3a3689d">setTarget</a>(<a class="code" href="classblfwk_1_1_data_target.html">DataTarget</a> *target) { <a class="code" href="classblfwk_1_1_data_source.html#a3cdb5a580a82196100105f66237986b3">m_target</a> = target; }</div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="classblfwk_1_1_data_source.html#a953ffa142790468e13ae3e3e76ff781a">  171</a></span>&#160;    <span class="keyword">inline</span> <a class="code" href="classblfwk_1_1_data_target.html">DataTarget</a> *<a class="code" href="classblfwk_1_1_data_source.html#a953ffa142790468e13ae3e3e76ff781a">getTarget</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classblfwk_1_1_data_source.html#a3cdb5a580a82196100105f66237986b3">m_target</a>; }</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_data_source.html#a907aa98ba871d75079999921b9a99759">getSegmentCount</a>() = 0;</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html">Segment</a> *<a class="code" href="classblfwk_1_1_data_source.html#a70f8d27828725a9c56bbb74d1ce0bd58">getSegmentAt</a>(<span class="keywordtype">unsigned</span> index) = 0;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="classblfwk_1_1_data_source.html#a3cdb5a580a82196100105f66237986b3">  184</a></span>&#160;    <a class="code" href="classblfwk_1_1_data_target.html">DataTarget</a> *<a class="code" href="classblfwk_1_1_data_source.html#a3cdb5a580a82196100105f66237986b3">m_target</a>; </div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;};</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="classblfwk_1_1_pattern_source.html">  196</a></span>&#160;<span class="keyword">class </span><a class="code" href="classblfwk_1_1_pattern_source.html">PatternSource</a> : <span class="keyword">public</span> <a class="code" href="classblfwk_1_1_data_source.html">DataSource</a>, <span class="keyword">public</span> <a class="code" href="classblfwk_1_1_data_source_1_1_pattern_segment.html">DataSource::PatternSegment</a></div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;{</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    <a class="code" href="classblfwk_1_1_pattern_source.html">PatternSource</a>();</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <a class="code" href="classblfwk_1_1_pattern_source.html">PatternSource</a>(<span class="keyword">const</span> <a class="code" href="classblfwk_1_1_sized_integer_value.html">SizedIntegerValue</a> &amp;value);</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="classblfwk_1_1_pattern_source.html#a43f43671e29e4ecb69d7668c3461e250">  206</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_pattern_source.html#a43f43671e29e4ecb69d7668c3461e250">getSegmentCount</a>() { <span class="keywordflow">return</span> 1; }</div><div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="classblfwk_1_1_pattern_source.html#adf991b49398b4819229362b2e630cffe">  208</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html">DataSource::Segment</a> *<a class="code" href="classblfwk_1_1_pattern_source.html#adf991b49398b4819229362b2e630cffe">getSegmentAt</a>(<span class="keywordtype">unsigned</span> index) { <span class="keywordflow">return</span> <span class="keyword">this</span>; }</div><div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="classblfwk_1_1_pattern_source.html#a48124285719f47d6c093c023cf12a528">  210</a></span>&#160;    <a class="code" href="classblfwk_1_1_pattern_source.html">PatternSource</a> &amp;<a class="code" href="classblfwk_1_1_pattern_source.html#a48124285719f47d6c093c023cf12a528">operator=</a>(<span class="keyword">const</span> <a class="code" href="classblfwk_1_1_sized_integer_value.html">SizedIntegerValue</a> &amp;value)</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    {</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        setPattern(value);</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    }</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;};</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;</div><div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="classblfwk_1_1_unmapped_data_source.html">  223</a></span>&#160;<span class="keyword">class </span><a class="code" href="classblfwk_1_1_unmapped_data_source.html">UnmappedDataSource</a> : <span class="keyword">public</span> <a class="code" href="classblfwk_1_1_data_source.html">DataSource</a>, <span class="keyword">public</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html">DataSource::Segment</a></div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;{</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    <a class="code" href="classblfwk_1_1_unmapped_data_source.html">UnmappedDataSource</a>();</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    <a class="code" href="classblfwk_1_1_unmapped_data_source.html">UnmappedDataSource</a>(<span class="keyword">const</span> uint8_t *data, <span class="keywordtype">unsigned</span> length);</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    <span class="keywordtype">void</span> setData(<span class="keyword">const</span> uint8_t *data, <span class="keywordtype">unsigned</span> length);</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div><div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="classblfwk_1_1_unmapped_data_source.html#a91400dd9d73b973338205735e1de3be1">  236</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_unmapped_data_source.html#a91400dd9d73b973338205735e1de3be1">getSegmentCount</a>() { <span class="keywordflow">return</span> 1; }</div><div class="line"><a name="l00238"></a><span class="lineno"><a class="line" href="classblfwk_1_1_unmapped_data_source.html#ad66d68c308507dfe3f0ee64a376dcea3">  238</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html">DataSource::Segment</a> *<a class="code" href="classblfwk_1_1_unmapped_data_source.html#ad66d68c308507dfe3f0ee64a376dcea3">getSegmentAt</a>(<span class="keywordtype">unsigned</span> index) { <span class="keywordflow">return</span> <span class="keyword">this</span>; }</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#a72b9a2d2824ddc9288c8f5982874fb1a">hasNaturalLocation</a>() { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#a518cfc843856682a550302f58f4b252c">getData</a>(<span class="keywordtype">unsigned</span> offset, <span class="keywordtype">unsigned</span> maxBytes, uint8_t *buffer);</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;</div><div class="line"><a name="l00247"></a><span class="lineno"><a class="line" href="classblfwk_1_1_unmapped_data_source.html#a27057da7f1b41fb418bbaf370b6b1b42">  247</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_unmapped_data_source.html#a27057da7f1b41fb418bbaf370b6b1b42">getLength</a>() { <span class="keywordflow">return</span> m_length; }</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    <span class="keyword">virtual</span> uint32_t <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#a426897327bc9930ac7291cf7ef80be0e">getBaseAddress</a>();</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00254"></a><span class="lineno"><a class="line" href="classblfwk_1_1_unmapped_data_source.html#ab2e7757a66f35d9f519678b970424905">  254</a></span>&#160;    <a class="code" href="group__smart__pointer.html">smart_array_ptr&lt;uint8_t&gt;</a> <a class="code" href="classblfwk_1_1_unmapped_data_source.html#ab2e7757a66f35d9f519678b970424905">m_data</a>; </div><div class="line"><a name="l00255"></a><span class="lineno"><a class="line" href="classblfwk_1_1_unmapped_data_source.html#a1b6c5e7c68a7acfe692442aa602d4810">  255</a></span>&#160;    <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_unmapped_data_source.html#a1b6c5e7c68a7acfe692442aa602d4810">m_length</a>;               </div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;};</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;</div><div class="line"><a name="l00263"></a><span class="lineno"><a class="line" href="classblfwk_1_1_memory_image_data_source.html">  263</a></span>&#160;<span class="keyword">class </span><a class="code" href="classblfwk_1_1_memory_image_data_source.html">MemoryImageDataSource</a> : <span class="keyword">public</span> <a class="code" href="classblfwk_1_1_data_source.html">DataSource</a></div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;{</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;    <a class="code" href="classblfwk_1_1_memory_image_data_source.html">MemoryImageDataSource</a>(<a class="code" href="class_st_executable_image.html">StExecutableImage</a> *image);</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="classblfwk_1_1_memory_image_data_source.html">MemoryImageDataSource</a>();</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_data_source.html#a907aa98ba871d75079999921b9a99759">getSegmentCount</a>();</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html">DataSource::Segment</a> *<a class="code" href="classblfwk_1_1_data_source.html#a70f8d27828725a9c56bbb74d1ce0bd58">getSegmentAt</a>(<span class="keywordtype">unsigned</span> index);</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00282"></a><span class="lineno"><a class="line" href="classblfwk_1_1_memory_image_data_source_1_1_text_segment.html">  282</a></span>&#160;    <span class="keyword">class </span><a class="code" href="classblfwk_1_1_memory_image_data_source_1_1_text_segment.html">TextSegment</a> : <span class="keyword">public</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html">DataSource::Segment</a></div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;    {</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;        <a class="code" href="classblfwk_1_1_memory_image_data_source_1_1_text_segment.html">TextSegment</a>(<a class="code" href="classblfwk_1_1_memory_image_data_source.html">MemoryImageDataSource</a> &amp;source, <a class="code" href="class_st_executable_image.html">StExecutableImage</a> *image, <span class="keywordtype">unsigned</span> index);</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#a518cfc843856682a550302f58f4b252c">getData</a>(<span class="keywordtype">unsigned</span> offset, <span class="keywordtype">unsigned</span> maxBytes, uint8_t *buffer);</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#aa974f251e332134e73f2924560cfd5c4">getLength</a>();</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;</div><div class="line"><a name="l00291"></a><span class="lineno"><a class="line" href="classblfwk_1_1_memory_image_data_source_1_1_text_segment.html#a0bb5459b4739f389f3234d88d05aa627">  291</a></span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_memory_image_data_source_1_1_text_segment.html#a0bb5459b4739f389f3234d88d05aa627">hasNaturalLocation</a>() { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;        <span class="keyword">virtual</span> uint32_t <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#a426897327bc9930ac7291cf7ef80be0e">getBaseAddress</a>();</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00295"></a><span class="lineno"><a class="line" href="classblfwk_1_1_memory_image_data_source_1_1_text_segment.html#a93ab9775ca2e81152f756bce99554cd3">  295</a></span>&#160;        <a class="code" href="class_st_executable_image.html">StExecutableImage</a> *<a class="code" href="classblfwk_1_1_memory_image_data_source_1_1_text_segment.html#a93ab9775ca2e81152f756bce99554cd3">m_image</a>; </div><div class="line"><a name="l00296"></a><span class="lineno"><a class="line" href="classblfwk_1_1_memory_image_data_source_1_1_text_segment.html#a321d45a86873a98a7e8203b157462e0b">  296</a></span>&#160;        <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_memory_image_data_source_1_1_text_segment.html#a321d45a86873a98a7e8203b157462e0b">m_index</a>;           </div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;    };</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;</div><div class="line"><a name="l00302"></a><span class="lineno"><a class="line" href="classblfwk_1_1_memory_image_data_source_1_1_fill_segment.html">  302</a></span>&#160;    <span class="keyword">class </span><a class="code" href="classblfwk_1_1_memory_image_data_source_1_1_fill_segment.html">FillSegment</a> : <span class="keyword">public</span> <a class="code" href="classblfwk_1_1_data_source_1_1_pattern_segment.html">DataSource::PatternSegment</a></div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;    {</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;        <a class="code" href="classblfwk_1_1_memory_image_data_source_1_1_fill_segment.html">FillSegment</a>(<a class="code" href="classblfwk_1_1_memory_image_data_source.html">MemoryImageDataSource</a> &amp;source, <a class="code" href="class_st_executable_image.html">StExecutableImage</a> *image, <span class="keywordtype">unsigned</span> index);</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#aa974f251e332134e73f2924560cfd5c4">getLength</a>();</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;</div><div class="line"><a name="l00309"></a><span class="lineno"><a class="line" href="classblfwk_1_1_memory_image_data_source_1_1_fill_segment.html#a896ee2496390a0468574037db8fad819">  309</a></span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_memory_image_data_source_1_1_fill_segment.html#a896ee2496390a0468574037db8fad819">hasNaturalLocation</a>() { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;        <span class="keyword">virtual</span> uint32_t <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html#a426897327bc9930ac7291cf7ef80be0e">getBaseAddress</a>();</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00313"></a><span class="lineno"><a class="line" href="classblfwk_1_1_memory_image_data_source_1_1_fill_segment.html#a4ea4a6c4d9edc9593c3eeef9d997eb34">  313</a></span>&#160;        <a class="code" href="class_st_executable_image.html">StExecutableImage</a> *<a class="code" href="classblfwk_1_1_memory_image_data_source_1_1_fill_segment.html#a4ea4a6c4d9edc9593c3eeef9d997eb34">m_image</a>; </div><div class="line"><a name="l00314"></a><span class="lineno"><a class="line" href="classblfwk_1_1_memory_image_data_source_1_1_fill_segment.html#ac2c21fe6b67bafeef9bf3e4c6290a118">  314</a></span>&#160;        <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_memory_image_data_source_1_1_fill_segment.html#ac2c21fe6b67bafeef9bf3e4c6290a118">m_index</a>;           </div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    };</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00318"></a><span class="lineno"><a class="line" href="classblfwk_1_1_memory_image_data_source.html#aff92029ce8fd6e430812ff841404d50d">  318</a></span>&#160;    <a class="code" href="class_st_executable_image.html">StExecutableImage</a> *<a class="code" href="classblfwk_1_1_memory_image_data_source.html#aff92029ce8fd6e430812ff841404d50d">m_image</a>; </div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;</div><div class="line"><a name="l00320"></a><span class="lineno"><a class="line" href="classblfwk_1_1_memory_image_data_source.html#ab447cd1f762dd5dcd2ff54f5d110b9e9">  320</a></span>&#160;    <span class="keyword">typedef</span> std::vector&lt;DataSource::Segment *&gt; <a class="code" href="classblfwk_1_1_memory_image_data_source.html#ab447cd1f762dd5dcd2ff54f5d110b9e9">segment_array_t</a>; </div><div class="line"><a name="l00321"></a><span class="lineno"><a class="line" href="classblfwk_1_1_memory_image_data_source.html#abf0cab156776e7fd7fca27006991e593">  321</a></span>&#160;    segment_array_t <a class="code" href="classblfwk_1_1_memory_image_data_source.html#abf0cab156776e7fd7fca27006991e593">m_segments</a>;                                 </div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;};</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;}; <span class="comment">// namespace blfwk</span></div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;</div><div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;<span class="preprocessor">#endif // _DataSource_h_</span></div><div class="ttc" id="classblfwk_1_1_data_source_html_a953ffa142790468e13ae3e3e76ff781a"><div class="ttname"><a href="classblfwk_1_1_data_source.html#a953ffa142790468e13ae3e3e76ff781a">blfwk::DataSource::getTarget</a></div><div class="ttdeci">DataTarget * getTarget() const </div><div class="ttdoc">Gets the associated data target. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:171</div></div>
<div class="ttc" id="classblfwk_1_1_memory_image_data_source_1_1_fill_segment_html_ac2c21fe6b67bafeef9bf3e4c6290a118"><div class="ttname"><a href="classblfwk_1_1_memory_image_data_source_1_1_fill_segment.html#ac2c21fe6b67bafeef9bf3e4c6290a118">blfwk::MemoryImageDataSource::FillSegment::m_index</a></div><div class="ttdeci">unsigned m_index</div><div class="ttdoc">Record index. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:314</div></div>
<div class="ttc" id="classblfwk_1_1_unmapped_data_source_html_a27057da7f1b41fb418bbaf370b6b1b42"><div class="ttname"><a href="classblfwk_1_1_unmapped_data_source.html#a27057da7f1b41fb418bbaf370b6b1b42">blfwk::UnmappedDataSource::getLength</a></div><div class="ttdeci">virtual unsigned getLength()</div><div class="ttdoc">Returns the number of bytes of data managed by the source. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:247</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_1_1_segment_html_a518cfc843856682a550302f58f4b252c"><div class="ttname"><a href="classblfwk_1_1_data_source_1_1_segment.html#a518cfc843856682a550302f58f4b252c">blfwk::DataSource::Segment::getData</a></div><div class="ttdeci">virtual unsigned getData(unsigned offset, unsigned maxBytes, uint8_t *buffer)=0</div><div class="ttdoc">Gets all or a portion of the segment&amp;#39;s data. </div></div>
<div class="ttc" id="namespaceblfwk_html"><div class="ttname"><a href="namespaceblfwk.html">blfwk</a></div><div class="ttdef"><b>Definition:</b> BlfwkErrors.h:16</div></div>
<div class="ttc" id="classblfwk_1_1_pattern_source_html"><div class="ttname"><a href="classblfwk_1_1_pattern_source.html">blfwk::PatternSource</a></div><div class="ttdoc">Data source for a repeating pattern. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:196</div></div>
<div class="ttc" id="classblfwk_1_1_memory_image_data_source_html_abf0cab156776e7fd7fca27006991e593"><div class="ttname"><a href="classblfwk_1_1_memory_image_data_source.html#abf0cab156776e7fd7fca27006991e593">blfwk::MemoryImageDataSource::m_segments</a></div><div class="ttdeci">segment_array_t m_segments</div><div class="ttdoc">The array of Segment instances. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:321</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_1_1_segment_html_a0796a4bf08ad30c2fb61847dc2a3e90f"><div class="ttname"><a href="classblfwk_1_1_data_source_1_1_segment.html#a0796a4bf08ad30c2fb61847dc2a3e90f">blfwk::DataSource::Segment::~Segment</a></div><div class="ttdeci">virtual ~Segment()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:75</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_html_ac9bb497fc9cf99267585d9fac3a3689d"><div class="ttname"><a href="classblfwk_1_1_data_source.html#ac9bb497fc9cf99267585d9fac3a3689d">blfwk::DataSource::setTarget</a></div><div class="ttdeci">void setTarget(DataTarget *target)</div><div class="ttdoc">Sets the associated data target. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:169</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_html_a907aa98ba871d75079999921b9a99759"><div class="ttname"><a href="classblfwk_1_1_data_source.html#a907aa98ba871d75079999921b9a99759">blfwk::DataSource::getSegmentCount</a></div><div class="ttdeci">virtual unsigned getSegmentCount()=0</div><div class="ttdoc">Returns the number of segments in this data source. </div></div>
<div class="ttc" id="group__smart__pointer_html"><div class="ttname"><a href="group__smart__pointer.html">smart_array_ptr&lt; uint8_t &gt;</a></div></div>
<div class="ttc" id="classblfwk_1_1_unmapped_data_source_html_a1b6c5e7c68a7acfe692442aa602d4810"><div class="ttname"><a href="classblfwk_1_1_unmapped_data_source.html#a1b6c5e7c68a7acfe692442aa602d4810">blfwk::UnmappedDataSource::m_length</a></div><div class="ttdeci">unsigned m_length</div><div class="ttdoc">Byte count of the data. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:255</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_1_1_segment_html_a426897327bc9930ac7291cf7ef80be0e"><div class="ttname"><a href="classblfwk_1_1_data_source_1_1_segment.html#a426897327bc9930ac7291cf7ef80be0e">blfwk::DataSource::Segment::getBaseAddress</a></div><div class="ttdeci">virtual uint32_t getBaseAddress()</div><div class="ttdoc">Returns the address associated with the segment. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:95</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_html_a3cdb5a580a82196100105f66237986b3"><div class="ttname"><a href="classblfwk_1_1_data_source.html#a3cdb5a580a82196100105f66237986b3">blfwk::DataSource::m_target</a></div><div class="ttdeci">DataTarget * m_target</div><div class="ttdoc">Corresponding target for this source. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:184</div></div>
<div class="ttc" id="classblfwk_1_1_pattern_source_html_a48124285719f47d6c093c023cf12a528"><div class="ttname"><a href="classblfwk_1_1_pattern_source.html#a48124285719f47d6c093c023cf12a528">blfwk::PatternSource::operator=</a></div><div class="ttdeci">PatternSource &amp; operator=(const SizedIntegerValue &amp;value)</div><div class="ttdoc">Assignment operator, sets the pattern value and length. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:210</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_1_1_pattern_segment_html_aefe925dc1e9ec3aaef58f4162cb1a82a"><div class="ttname"><a href="classblfwk_1_1_data_source_1_1_pattern_segment.html#aefe925dc1e9ec3aaef58f4162cb1a82a">blfwk::DataSource::PatternSegment::operator=</a></div><div class="ttdeci">PatternSegment &amp; operator=(const SizedIntegerValue &amp;value)</div><div class="ttdoc">Assignment operator, sets the pattern value and length. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:146</div></div>
<div class="ttc" id="classblfwk_1_1_memory_image_data_source_1_1_text_segment_html_a93ab9775ca2e81152f756bce99554cd3"><div class="ttname"><a href="classblfwk_1_1_memory_image_data_source_1_1_text_segment.html#a93ab9775ca2e81152f756bce99554cd3">blfwk::MemoryImageDataSource::TextSegment::m_image</a></div><div class="ttdeci">StExecutableImage * m_image</div><div class="ttdoc">Coalesced image of the file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:295</div></div>
<div class="ttc" id="classblfwk_1_1_memory_image_data_source_1_1_text_segment_html_a321d45a86873a98a7e8203b157462e0b"><div class="ttname"><a href="classblfwk_1_1_memory_image_data_source_1_1_text_segment.html#a321d45a86873a98a7e8203b157462e0b">blfwk::MemoryImageDataSource::TextSegment::m_index</a></div><div class="ttdeci">unsigned m_index</div><div class="ttdoc">Record index. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:296</div></div>
<div class="ttc" id="classblfwk_1_1_data_target_html"><div class="ttname"><a href="classblfwk_1_1_data_target.html">blfwk::DataTarget</a></div><div class="ttdoc">Abstract base class for the target address or range of data. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataTarget.h:57</div></div>
<div class="ttc" id="class_st_executable_image_html"><div class="ttname"><a href="class_st_executable_image.html">StExecutableImage</a></div><div class="ttdoc">Used to build a representation of memory regions. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/StExecutableImage.h:27</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_html_a70f8d27828725a9c56bbb74d1ce0bd58"><div class="ttname"><a href="classblfwk_1_1_data_source.html#a70f8d27828725a9c56bbb74d1ce0bd58">blfwk::DataSource::getSegmentAt</a></div><div class="ttdeci">virtual Segment * getSegmentAt(unsigned index)=0</div><div class="ttdoc">Returns segment number index of the data source. </div></div>
<div class="ttc" id="classblfwk_1_1_memory_image_data_source_1_1_text_segment_html_a0bb5459b4739f389f3234d88d05aa627"><div class="ttname"><a href="classblfwk_1_1_memory_image_data_source_1_1_text_segment.html#a0bb5459b4739f389f3234d88d05aa627">blfwk::MemoryImageDataSource::TextSegment::hasNaturalLocation</a></div><div class="ttdeci">virtual bool hasNaturalLocation()</div><div class="ttdoc">Returns whether the segment has an associated address. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:291</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_1_1_pattern_segment_html_a34dcdffc029ba8600657bc978b804827"><div class="ttname"><a href="classblfwk_1_1_data_source_1_1_pattern_segment.html#a34dcdffc029ba8600657bc978b804827">blfwk::DataSource::PatternSegment::m_pattern</a></div><div class="ttdeci">SizedIntegerValue m_pattern</div><div class="ttdoc">The fill pattern. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:154</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_1_1_segment_html_a72b9a2d2824ddc9288c8f5982874fb1a"><div class="ttname"><a href="classblfwk_1_1_data_source_1_1_segment.html#a72b9a2d2824ddc9288c8f5982874fb1a">blfwk::DataSource::Segment::hasNaturalLocation</a></div><div class="ttdeci">virtual bool hasNaturalLocation()=0</div><div class="ttdoc">Returns whether the segment has an associated address. </div></div>
<div class="ttc" id="classblfwk_1_1_sized_integer_value_html"><div class="ttname"><a href="classblfwk_1_1_sized_integer_value.html">blfwk::SizedIntegerValue</a></div><div class="ttdoc">Adds a word size attribute to IntegerValue. </div><div class="ttdef"><b>Definition:</b> src/blfwk/Value.h:95</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_1_1_segment_html_a0afe9c18e41b3529af0fe2d868d2b8f6"><div class="ttname"><a href="classblfwk_1_1_data_source_1_1_segment.html#a0afe9c18e41b3529af0fe2d868d2b8f6">blfwk::DataSource::Segment::Segment</a></div><div class="ttdeci">Segment(DataSource &amp;source)</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:69</div></div>
<div class="ttc" id="classblfwk_1_1_memory_image_data_source_1_1_text_segment_html"><div class="ttname"><a href="classblfwk_1_1_memory_image_data_source_1_1_text_segment.html">blfwk::MemoryImageDataSource::TextSegment</a></div><div class="ttdoc">Segment corresponding to a text region of the executable image. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:282</div></div>
<div class="ttc" id="classblfwk_1_1_memory_image_data_source_html_aff92029ce8fd6e430812ff841404d50d"><div class="ttname"><a href="classblfwk_1_1_memory_image_data_source.html#aff92029ce8fd6e430812ff841404d50d">blfwk::MemoryImageDataSource::m_image</a></div><div class="ttdeci">StExecutableImage * m_image</div><div class="ttdoc">The memory image that is the data source. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:318</div></div>
<div class="ttc" id="classblfwk_1_1_unmapped_data_source_html"><div class="ttname"><a href="classblfwk_1_1_unmapped_data_source.html">blfwk::UnmappedDataSource</a></div><div class="ttdoc">Data source for data that is not memory mapped (has no natural address). </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:223</div></div>
<div class="ttc" id="classblfwk_1_1_pattern_source_html_a43f43671e29e4ecb69d7668c3461e250"><div class="ttname"><a href="classblfwk_1_1_pattern_source.html#a43f43671e29e4ecb69d7668c3461e250">blfwk::PatternSource::getSegmentCount</a></div><div class="ttdeci">virtual unsigned getSegmentCount()</div><div class="ttdoc">There is only one segment. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:206</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_html_abbf11da8bfe579daeb6a036855828343"><div class="ttname"><a href="classblfwk_1_1_data_source.html#abbf11da8bfe579daeb6a036855828343">blfwk::DataSource::DataSource</a></div><div class="ttdeci">DataSource()</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:159</div></div>
<div class="ttc" id="classblfwk_1_1_pattern_source_html_adf991b49398b4819229362b2e630cffe"><div class="ttname"><a href="classblfwk_1_1_pattern_source.html#adf991b49398b4819229362b2e630cffe">blfwk::PatternSource::getSegmentAt</a></div><div class="ttdeci">virtual DataSource::Segment * getSegmentAt(unsigned index)</div><div class="ttdoc">Returns this object, as it is its own segment. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:208</div></div>
<div class="ttc" id="classblfwk_1_1_memory_image_data_source_1_1_fill_segment_html"><div class="ttname"><a href="classblfwk_1_1_memory_image_data_source_1_1_fill_segment.html">blfwk::MemoryImageDataSource::FillSegment</a></div><div class="ttdoc">Segment corresponding to a fill region of the executable image. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:302</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_1_1_segment_html"><div class="ttname"><a href="classblfwk_1_1_data_source_1_1_segment.html">blfwk::DataSource::Segment</a></div><div class="ttdoc">Discrete, contiguous part of the source&amp;#39;s data. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:65</div></div>
<div class="ttc" id="classblfwk_1_1_memory_image_data_source_html_ab447cd1f762dd5dcd2ff54f5d110b9e9"><div class="ttname"><a href="classblfwk_1_1_memory_image_data_source.html#ab447cd1f762dd5dcd2ff54f5d110b9e9">blfwk::MemoryImageDataSource::segment_array_t</a></div><div class="ttdeci">std::vector&lt; DataSource::Segment * &gt; segment_array_t</div><div class="ttdoc">An array of segments. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:320</div></div>
<div class="ttc" id="classblfwk_1_1_unmapped_data_source_html_a91400dd9d73b973338205735e1de3be1"><div class="ttname"><a href="classblfwk_1_1_unmapped_data_source.html#a91400dd9d73b973338205735e1de3be1">blfwk::UnmappedDataSource::getSegmentCount</a></div><div class="ttdeci">virtual unsigned getSegmentCount()</div><div class="ttdoc">There is only one segment. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:236</div></div>
<div class="ttc" id="classblfwk_1_1_memory_image_data_source_html"><div class="ttname"><a href="classblfwk_1_1_memory_image_data_source.html">blfwk::MemoryImageDataSource</a></div><div class="ttdoc">Data source that takes its data from an executable image. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:263</div></div>
<div class="ttc" id="classblfwk_1_1_memory_image_data_source_1_1_fill_segment_html_a4ea4a6c4d9edc9593c3eeef9d997eb34"><div class="ttname"><a href="classblfwk_1_1_memory_image_data_source_1_1_fill_segment.html#a4ea4a6c4d9edc9593c3eeef9d997eb34">blfwk::MemoryImageDataSource::FillSegment::m_image</a></div><div class="ttdeci">StExecutableImage * m_image</div><div class="ttdoc">Coalesced image of the file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:313</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_1_1_pattern_segment_html_ac6ea1f87579015f4a8087d5cb5556f8d"><div class="ttname"><a href="classblfwk_1_1_data_source_1_1_pattern_segment.html#ac6ea1f87579015f4a8087d5cb5556f8d">blfwk::DataSource::PatternSegment::getPattern</a></div><div class="ttdeci">SizedIntegerValue &amp; getPattern()</div><div class="ttdoc">Return the fill pattern for the segment. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:144</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_1_1_segment_html_ace39325ad306a493951b2da7064a40e7"><div class="ttname"><a href="classblfwk_1_1_data_source_1_1_segment.html#ace39325ad306a493951b2da7064a40e7">blfwk::DataSource::Segment::m_source</a></div><div class="ttdeci">DataSource &amp; m_source</div><div class="ttdoc">The data source to which this segment belongs. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:97</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_html_a15d6cb8713f5f068e59cb19adf6bc4f0"><div class="ttname"><a href="classblfwk_1_1_data_source.html#a15d6cb8713f5f068e59cb19adf6bc4f0">blfwk::DataSource::~DataSource</a></div><div class="ttdeci">virtual ~DataSource()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:165</div></div>
<div class="ttc" id="classblfwk_1_1_unmapped_data_source_html_ad66d68c308507dfe3f0ee64a376dcea3"><div class="ttname"><a href="classblfwk_1_1_unmapped_data_source.html#ad66d68c308507dfe3f0ee64a376dcea3">blfwk::UnmappedDataSource::getSegmentAt</a></div><div class="ttdeci">virtual DataSource::Segment * getSegmentAt(unsigned index)</div><div class="ttdoc">Returns this object, as it is its own segment. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:238</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_html"><div class="ttname"><a href="classblfwk_1_1_data_source.html">blfwk::DataSource</a></div><div class="ttdoc">Abstract base class for data sources. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:56</div></div>
<div class="ttc" id="classblfwk_1_1_memory_image_data_source_1_1_fill_segment_html_a896ee2496390a0468574037db8fad819"><div class="ttname"><a href="classblfwk_1_1_memory_image_data_source_1_1_fill_segment.html#a896ee2496390a0468574037db8fad819">blfwk::MemoryImageDataSource::FillSegment::hasNaturalLocation</a></div><div class="ttdeci">virtual bool hasNaturalLocation()</div><div class="ttdoc">Pattern segments have no natural address. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:309</div></div>
<div class="ttc" id="classblfwk_1_1_unmapped_data_source_html_ab2e7757a66f35d9f519678b970424905"><div class="ttname"><a href="classblfwk_1_1_unmapped_data_source.html#ab2e7757a66f35d9f519678b970424905">blfwk::UnmappedDataSource::m_data</a></div><div class="ttdeci">smart_array_ptr&lt; uint8_t &gt; m_data</div><div class="ttdoc">The data. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:254</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_1_1_segment_html_aa974f251e332134e73f2924560cfd5c4"><div class="ttname"><a href="classblfwk_1_1_data_source_1_1_segment.html#aa974f251e332134e73f2924560cfd5c4">blfwk::DataSource::Segment::getLength</a></div><div class="ttdeci">virtual unsigned getLength()=0</div><div class="ttdoc">Gets the length of the segment&amp;#39;s data. </div></div>
<div class="ttc" id="classblfwk_1_1_data_source_1_1_pattern_segment_html"><div class="ttname"><a href="classblfwk_1_1_data_source_1_1_pattern_segment.html">blfwk::DataSource::PatternSegment</a></div><div class="ttdoc">This is a special type of segment containing a repeating pattern. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:110</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_80fb9e53c172a775cab667063273d0e3.html">blfwk</a></li><li class="navelem"><b>DataSource.h</b></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:49:49 for Kinetis Bootloader Host by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
